<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="layout/blank"><!-- layout文件路径-->
<head>
    <title>电影列表</title>
</head>
<body>
<div layout:fragment="content">
    <div class="row">
    <div class="col-md-12">

        <!-- START SIMPLE DATATABLE -->
        <div class="panel panel-default">
            <div class="panel-body">
                <table class="table datatable_simple">
                    <thead>
                    <tr>
                        <th>片名</th>
                        <th>淸晰度</th>
                        <th>区域</th>
                        <th>类型</th>
                        <th>价格</th>
                        <th>已售</th>
                        <th>上架时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="entity : ${list}">
                        <td th:text="${entity.movie_name}"></td>
                        <td th:each="dic:${dictionaries}" th:if="${dic.keyNo=='MOVIE_CLARITY' and dic.keyValue==entity.clarity}" th:text="${dic.caption}"></td>
                        <td th:each="dic:${dictionaries}" th:if="${dic.keyNo=='MOVIE_AREA' and dic.keyValue==entity.area}" th:text="${dic.caption}"></td>
                        <td th:each="dic:${dictionaries}" th:if="${dic.keyNo=='MOVIE_TYPE' and dic.keyValue==entity.type}" th:text="${dic.caption}"></td>
                        <td th:text="${entity.price}"></td>
                        <td th:text="${entity.total}">0</td>
                        <td th:text="${#dates.format(entity.create_time,'yyyy-MM-dd HH:mm:ss')}"></td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!-- END SIMPLE DATATABLE -->
    </div>
</div>
</div>
</body>
</html>